package qmsz.api.service.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import qmsz.api.dao.QMChargeOrderLocationDAO;
import qmsz.api.domain.QMChargeOrderLocation;
import qmsz.api.service.QMChargeOrderLocationService;

@Service
public class QMChargeOrderLocationServiceImpl implements QMChargeOrderLocationService {
	
	private static final Logger logger = Logger.getLogger(QMChargeOrderLocationServiceImpl.class);
	
	@Autowired
	private QMChargeOrderLocationDAO qmcolDAO;
	
	@Override
	public List<QMChargeOrderLocation> selectAllLocations() {
		List<QMChargeOrderLocation> value = null;
		try {
			value = qmcolDAO.selectAllLocations();
		} catch (Exception e) {
			logger.error("query error", e);
			value = null;
		}
		return value;
	}
}
